from django import forms
from .models import User


class SignupForm(forms.ModelForm):
    class Meta:
        model = User
        # TODO: 排除create_time进行验证
        exclude = ['create_time']


class SigninForm(forms.ModelForm):
    class Meta:
        model = User
        # TODO: 针对email,password字段进行校验
        fields = ['email', 'password']


class TransferForm(forms.Form):
    email = forms.EmailField()
    money = forms.FloatField(min_value=0)
